package com.caigua.mgp.mg.codegen.customize;

import com.caigua.mgp.mg.utils.GenUtil;
import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType;
import org.mybatis.generator.api.dom.java.PrimitiveTypeWrapper;

/**
 * @BelongsProject: mybatis_generator_pluing
 * @BelongsPackage: com.caigua.mgp.mg.codegen.customize
 * @Author: caigua
 * @CreateTime: 2020-12-09 14:49
 * @Description: todo
 */
public class CustomizeTypeWrapper extends FullyQualifiedJavaType {


    /**
     * Use this constructor to construct a generic type with the specified type parameters.
     *
     * @param fullTypeSpecification the full type specification
     */
    public CustomizeTypeWrapper(String fullTypeSpecification) {
        super(fullTypeSpecification);
    }

    public static final FullyQualifiedJavaType getPageRespType() {
        return new FullyQualifiedJavaType("com.github.pagehelper.Page");
    }

    public static final FullyQualifiedJavaType getQueryPageType() {
        return new FullyQualifiedJavaType(GenUtil.pageParamClass.toString());
    }
}
